package com.drojian.model;

import com.drojian.R;
import com.drojian.entity.Goods;

import java.util.ArrayList;
import java.util.List;

public class GoodsModel implements IGoodsModel{

    @Override
    public void loadGoodsData(OnLoadListener onLoadListener) {
        onLoadListener.onComplete(getData());
    }

    private List<Goods> getData() {
        ArrayList<Goods> goods = new ArrayList<>();
        goods.add(new Goods(R.drawable.anniu,"aaa"));
        goods.add(new Goods(R.drawable.anniu,"aaa"));
        goods.add(new Goods(R.drawable.anniu,"aaa"));
        goods.add(new Goods(R.drawable.anniu,"aaa"));
        goods.add(new Goods(R.drawable.anniu,"aaa"));
        goods.add(new Goods(R.drawable.anniu,"aaa"));
        return goods;
    }
}
